home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Precision Software Appli…tions Silver Collection 3
/
Precision Software Applications Silver Collection Volume Three (PSM) (1993).iso
/
drivers
/
mcf100.exe
/
MCF100.DOC
< prev
next >
Wrap
Text File
|
1992-10-02
|
39KB
|
1,175 lines
MCONFIG Version 1.00
Copyright 1992 by McAfee Associates.
All Rights Reserved.
Documentation by Aryeh Goretsky
McAfee Associates, Inc. (408) 988-3832 office
3350 Scott Blvd, Bldg. 14 (408) 970-9727 FAX
Santa Clara, CA 95054-3107 (408) 988-4004 BBS
USA USR HST/v.32/v.42bis/MNP1-5
CompuServe GO MCAFEE
Internet support@mcafee.COM
TABLE OF CONTENTS
SYNOPSIS . . . . . . . . . . . . . . . . . . . . . . . . . 2
- What is the Multiple Configuration Manager (MCONFIG)
- System requirements
AUTHENTICITY . . . . . . . . . . . . . . . . . . . . . . . 3
- Verifying the integrity of MCONFIG
MCONFIG OVERVIEW . . . . . . . . . . . . . . . . . . . . . 4
- General description of MCONFIG
MCONFIG INSTALLATION and OPTIONS . . . . . . . . . . . . . 5
- Options for use with MCONFIG
MCONFIG MENU ITEMS . . . . . . . . . . . . . . . . . . . . 6
- How to insert Configuration Selection Menu items
MCONFIG DISPLAY ITEMS. . . . . . . . . . . . . . . . . . . 8
- How to change MCONFIG's colors
MCONFIG SUPPLEMENTAL PROGRAMS. . . . . . . . . . . . . . . 9
- How to use the ASK, PAUSE, and ECHO device drivers
MCONFIG EXAMPLES . . . . . . . . . . . . . . . . . . . . . 11
- Sample CONFIG.SYS and AUTOEXEC.BAT files
MCONFIG TUTORIAL . . . . . . . . . . . . . . . . . . . . . 14
- Learn how to use MCONFIG
NOTES ON MCONFIG . . . . . . . . . . . . . . . . . . . . . 15
- DOS 3.3 and DOS 5.0 considerations
APPENDIX A: Advanced MCONFIG Features . . . . . . . . . . 16
- How to use the ENVIRON and SET device drivers
- How to use the MCON-ERR, MCON-SET, and CREM programs
Page 1
MCONFIG Version 1.00 Page 2
SYNOPSIS
MCONFIG is a suite of utilities designed to provide
multiple configurations for flexibility. MCONFIG is for IBM PC
and compatible computers using the MS-DOS and PC-DOS operating
systems. MCONFIG provides up to 14 different multiple
configuration setups inside the CONFIG.SYS and AUTOEXEC.BAT files.
MCONFIG is a device driver that loads through the
CONFIG.SYS file. MCONFIG presents the user with a menu of the
different configurations available. After selecting one,
MCONFIG modifies the in-memory copy of CONFIG.SYS so that only
the commands for the selected configuration are executed.
MCONFIG Version 1.00 works on any system with 256Kb of
memory and DOS 3.3 or greater. MCONFIG requires MS-DOS or
PC-DOS 3.30 or above. It is not compatible with DR-DOS.
MCONFIG Version 1.00 Page 3
AUTHENTICITY
MCONFIG is packaged with the VALIDATE program to ensure the
integrity of its files. The VALIDATE.DOC file tells how to use
VALIDATE. VALIDATE can be used to check subsequent versions of
MCONFIG for tampering.
The validation results for Version 1.00 should be:
FILENAME SIZE DATE CHECK METHOD
ASK.SYS S:4,057 D:08-19-92 M1: 6E41 M2: 146B
CREM.EXE S:15,372 D:08-21-92 M1: 6D59 M2: 1EC8
ECHO.SYS S:1,700 D:08-19-92 M1: CE25 M2: 0C88
ENVIRON.SYS S:298 D:08-19-92 M1: AB32 M2: 1504
MCONFIG.SYS S:13,651 D:08-21-92 M1: 6CF3 M2: 1061
MCON-ERR.COM S:71 D:07-23-92 M1: 51EE M2: 1EEC
MCON-SET.EXE S:10,098 D:07-23-92 M1: 935D M2: 0400
PAUSE.SYS S:1,890 D:08-19-92 M1: 4D46 M2: 10AA
SET.SYS S:2,518 D:08-19-92 M1: 5ED3 M2: 17AF
If your copy of MCONFIG differs, it may have been damaged.
Always obtain MCONFIG from a known source, such as McAfee
Associates, its Authorized Agents, or the person responsible for
computer security in your organization. The latest version of
MCONFIG and validation data can be obtained from McAfee
Associates' bulletin board system at (408) 988-4004, the McAfee
Virus Help Forum on CompuServe (GO MCAFEE), or by anonymous ftp
from the mcafee.COM site on the Internet.
All of McAfee Associates' programs have been archived
with PKWare's PKZIP Authentic File Verification. If you do
not see an "-AV" after every file is unzipped and receive
the "Authentic Files Verified! # NWN405 Zip Source: McAFEE
ASSOCIATES" message then do not use them.
If your version of PKUNZIP does not have verification
ability, then this message may not be displayed. Please
contact us if you believe tampering has occurred to the .ZIP
file.
MCONFIG Version 1.00 Page 4
MCONFIG OVERVIEW
MCONFIG is a device driver that allows the selection of
different configuration set ups. At boot up, MCONFIG
displays a menu listing available configurations. After
selecting a configuration, MCONFIG modifies the in-memory copy
of the CONFIG.SYS file so that only the configuration selected
will be used. After the selected configuration has been
executed, a single AUTOEXEC batch file or multiple AUTOEXEC
files can be executed.
MCONFIG comes with a number of supplementary device drivers
to simplify the creation of multi-configuration environments.
These device drivers are explained in appendix A.
MCONFIG works by placing Menu Items within the CONFIG.SYS
file, followed by the different "selection blocks" of CONFIG.SYS
entries to be used when each Menu Item is selected. Menu Items
display the actual text to appear on the Configuration Selection
menu; these are followed by the CONFIG.SYS entries associated
with each Menu Item.
MCONFIG Version 1.00 Page 5
MCONFIG INSTALLATION and OPTIONS
MCONFIG is normally placed at the beginning of the
CONFIG.SYS file. When initially executed, MCONFIG reads in
the rest of the CONFIG.SYS file and displays a Configuration
Selection menu based on the Menu Items found.
NOTE: There will be several entries for MCONFIG in the
CONFIG.SYS file: one to initially load MCONFIG,
one for each Menu Item, plus an entry to signal where
MCONFIG stops processing the last menu entry.
Additional entries to set colors and other options may
also appear.
Valid options for MCONFIG are listed below:
DEVICE = MCONFIG.SYS CENTER DEFAULT=n END NOHIGHVIDEO NUMOFF
TIMEOUT=n PASSIVE {left shift key} {right shift key}
Options are:
CENTER - center Menu Items in window
DEFAULT=n - use Menu Item 'n' as default
END - tells where last Menu Item finishes
NOHIGHVIDEO - disable video attributes used on EGA/VGA
monitors
NUMOFF - turn off NumLock
PASSIVE - execute first Menu Item as default
(see below for specifics)
TIMEOUT=n - set delay time in seconds for DEFAULT
{left shift key} - invoke Menu Item 1 at boot-up
{right shift key} - invoke Menu Item 2 at boot-up
NOTE: Use the complete pathname for only the first MCONFIG
entry. For other entries use the statement
"DEVICE = MCONFIG options" with a pathname.
The CENTER switch tells MCONFIG to center Menu Items
in the MCONFIG Configuration Selection menu window. By
default, all Menu Items are left-justified.
The DEFAULT switch tells MCONFIG which Menu Item to
select as the default menu selection. It can be used with the
TIMEOUT switch to invoke a default configuration. Syntax is
DEFAULT=n where 'n' is the Menu Item to select as the default
OR place the DEFAULT switch on the MCONFIG Menu Item line to be
selected as the default Menu Item.
MCONFIG Version 1.00 Page 6
The END switch tells MCONFIG to finish processing menu
entries. Any CONFIG.SYS entries after the END switch will be
executed with all configurations.
The NOHIGHVIDEO switch disables the "high video"
attributes used on EGA and VGA monitors. If you are using a
different type of monitor, you may see blinking characters on
the screen. If so, use the NOHIGHVIDEO switch with MCONFIG.
The NUMOFF switch turns off the NumLock key.
The PASSIVE switch tells MCONFIG to use the first Menu
Item unless you tell it to pop up the menu by pressing the
left SHIFT key. If the right SHIFT key is pressed, MCONFIG
executes the second Menu Item.
In non-passive mode, holding down the {LEFT SHIFT KEY}
during boot-up will automatically start the first Menu Item
without displaying the Configuration Selection Menu.
Holding down the {RIGHT SHIFT KEY} during boot-up will
automatically start the second Menu Item without displaying the
Configuration Selection Menu.
Key pressed │ In ACTIVE Mode │ In PASSIVE mode
at boot-up │ (default) │ (using PASSIVE switch)
════════════╪═════════════════════════╪════════════════════════
none │ MCONFIG menu is always │ First Menu Item is
│ displayed on screen. │ executed without
│ │ displaying the menu.
────────────┼─────────────────────────┼────────────────────────
left SHIFT │ First Menu Item is │ MCONFIG menu is
key │ executed. │ displayed on screen
────────────┼─────────────────────────┼────────────────────────
right Shift │ Second Menu Item is │ Second Menu Item is
key │ executed without │ executed without
│ displaying the menu. │ displaying the menu.
MCONFIG MENU ITEMS
Menu Items tell MCONFIG what text to insert into the
Configuration Selection Menu. The syntax is:
DEVICE = MCONFIG "text \TEXT\ \T\ext" DEFAULT TIMEOUT=n
When MCONFIG sees the double quote in the CONFIG.SYS file
after MCONFIG, it adds that Message Line to the Configuration
Selection Menu.
MCONFIG Version 1.00 Page 7
The operating system displays all lines in the CONFIG.SYS in
UPPER CASE. To make messages more readable, MCONFIG switches
between cases. This is done by placing a backslash character
"\" in the Message Line text. Example:
DEVICE = MCONFIG "T\his is a \TEST\ \M\essage."
would be displayed on the screen as:
"This is a TEST Message."
The DEFAULT and TIMEOUT switches can be used with Message
Lines (See MCONFIG INSTALLATION and OPERATIONS for more
information).
After each Menu Item, place the CONFIG.SYS entries to use
with it. At the end of the multi-configuration area of the
CONFIG.SYS file, place a "DEVICE = MCONFIG End" statement.
A commented example of a CONFIG.SYS:
COMMENTS │ CONFIG.SYS Contents
═════════════════════╪══════════════════════════════════════════
invoke MCONFIG │ device = C:\MCONFIG\MCONFIG.SYS
│
option 1 on the menu │ device = MCONFIG "M\enu entry number 1"
│ ........
│ statements to execute if selected
│ ........
│
option 2 on the menu │ device = MCONFIG "M\enu entry number 2"
│ ........
│ statements to execute if selected
│ ........
│
mark the end │ device = MCONFIG End
│
These lines are used │ DOS = High, UMB
with all selections │ Files = 30
since they are after │ Stacks = 0,0
the MCONFIG = END │ Buffers = 10
statement. │ Break = OFF
Using the above CONFIG.SYS file, the following
Configuration Selection menu will be displayed:
╔════════════════════════════════════════════════╗
║ ║
║ Menu entry number 1 ║
║ Menu entry number 2 ║
║ ║
╚════════════════════════════════════════════════╝
MCONFIG Version 1.00 Page 8
The first entry is highlighted by the "selection bar".
Choosing Entry 1 causes the statements immediately following
the first selection block to be executed, and statements in
the other selection blocks will be ignored by the system.
MCONFIG DISPLAY ITEMS
NOTE: MCONFIG automatically detects monochrome monitors
and will adjust screen colors appropriately.
Display Items allow you to change MCONFIG's default
colors. Display items follow the following syntax:
DEVICE = MCONFIG displayitem = color
Where "displayitem" is the item to change the color of and
"color" is the color to use. Display Items are as follows:
DISPLAY ITEM COLOR
═══════════════════╤═══════════════════════════════════════
BannerBorder │top and bottom lines of screen
│
BannerBackground │copyright background color
│
BannerForeground │copyright foreground color
│
BackgroundFill │background screen color
│
DialogBorder │border color around Configuration
│Selection menu dialog box.
│
DialogBackground │background color of Configuration
│Selection menu dialog box.
│
DialogForeground │foreground color of Configuration
│Selection menu dialog box.
│
SelectionBarBackground│background color used when displaying
│the moveable selection bar.
│
SelectionBarForeground│foreground color used when displaying
│the moveable selection bar.
MCONFIG Version 1.00 Page 9
Valid color values are:
═════════════╤══════════════════════════════
Blue │ LightBlue (BrightBlue)
Green │ LightGreen (BrightGreen)
Cyan │ LightCyan (BrightCyan)
Red │ LightRed (BrightRed)
Magenta │ LightMagenta (BrightMagenta)
Brown │ Yellow (BrightBrown)
DarkGray │ LightGray (BrightGray)
White │
MCONFIG SUPPLEMENTAL PROGRAMS
ASK.SYS DEVICE DRIVER
The ASK.SYS device driver is a device driver that can be
used to ask simple, one-line Yes/No questions at boot-up and
then selectively load other device drivers based upon the
response. Questions can be placed in Menu Item "selection
blocks". The syntax for ASK is:
DEVICE = ASK.SYS "Question" DEFAULT=x TIMEOUT=n
DEVICE = YES
(lines to execute if YES)
...
DEVICE = NO
(optional lines to execute if NO)
...
DEVICE = END
For information on the DEFAULT and TIMEOUT switches, please
refer to the MCONFIG INSTALLATION and OPERATIONS section.
An example of the ASK.SYS device driver:
device=c:\Ask.Sys "L\oad mouse driver?" default=Y timeout=10
device=YES
device=c:\mouse\mouse.sys
device=END
The same caveats that apply to MCONFIG for DOS 3.3 and DOS 5.0
exist for ASK (see NOTES ON MCONFIG for more information).
PAUSE.SYS DEVICE DRIVER
The PAUSE.SYS device driver performs identically to the
DOS PAUSE batch file command. It displays an optional message
MCONFIG Version 1.00 Page 10
and waits for any key to be pressed. The syntax for PAUSE is:
DEVICE = PAUSE.SYS message
where "message" is an optional message to display. If no
message is given, PAUSE will display:
Press any key when ready...
Otherwise, PAUSE will display the optional message.
An example of the PAUSE.SYS device driver:
DEVICE = C:\PAUSE.SYS P\ress any to continue \CONFIG.SYS
would display the following message:
Press any key to continue CONFIG.SYS
and pause until a key was pressed.
ECHO.SYS DEVICE DRIVER
The ECHO.SYS device driver performs identically to the
DOS ECHO batch file command. It is useful for debugging the
CONFIG.SYS file. The syntax for ECHO is:
DEVICE = ECHO.SYS message
where "message" is a message to display.
An example of the ECHO.SYS device driver:
DEVICE = C:\ECHO.SYS L\oading \MOUSE\ driver now.
DEVICE = C:\MOUSE\MOUSE.SYS
DEVICE = C:\ECHO.SYS MOUSE\ has loaded successfully.
DEVICE = C:\PAUSE.SYS
would display the message "Loading MOUSE driver now.", load
the mouse driver into memory, display the message "MOUSE has
loaded successfully." and pause until a key is pressed.
MCONFIG Version 1.00 Page 11
MCONFIG EXAMPLES
Following are a sample CONFIG.SYS file and two sample
AUTOEXEC.BAT files. The CONFIG.SYS has three different
configurations for booting without network drivers, booting
with LAN Manager, and booting with Novell NetWare drivers.
NOTE: The first and last four lines of the CONFIG.SYS file are
outside of the "DEVICE=C:\MCONFIG.SYS" and "MCONFIG End"
lines are shared across all selections and will ALWAYS
be run.
__ SAMPLE CONFIG.SYS FILE ______________________________________
DOS = high,umb
device = c:\dos\himem.sys
device = c:\emm386.exe ram noems i=b000-b7ff
shell = c:\command.com /p /e:512
DEVICE = c:\mconfig.sys Center NumOff
device = MCONFIG SelectionBarBackground=RED
device = MCONFIG "N\o network" Default Timeout=30
devicehigh = c:\mouse\mouse.sys /y /s30
devicehigh = c:\dos\ansi.sys
devicehigh = c:\dos\setver.exe
device = c:\MCONFIG\Ask.Sys "L\oad the \MOUSE\ driver?"
device = YES
devicehigh = c:\mouse\mouse.sys /y /s30
device = END
device = MCONFIG "LAN M\anager \N\etwork"
devicehigh = c:\netlib\dxma0mod.sys 001
devicehigh = c:\netlib\dxmc0mod.sys
devicehigh = c:\netlib\dxmt0mod.sys s=32 c=32
devicehigh = c:\dos\ansi.sys
devicehigh = c:\dos\setver.exe
device = MCONFIG "N\ovell \N\etwork"
devicehigh = c:\mouse\mouse.sys /y /s30
devicehigh = c:\netlib\dxma0mod.sys 001
devicehigh = c:\netlib\dxmc0mod.sys
devicehigh = c:\netlib\dxmt0mod.sys s=32 c=32
devicehigh = c:\dos\ansi.sys
devicehigh = c:\dos\setver.exe
device = MCONFIG End
buffers = 20
files = 50
STACKS = 0,0
lastdrive = E
MCONFIG Version 1.00 Page 12
The first sample AUTOEXEC.BAT file shows how to use the
MCONFIG environment variable to login to a Novell network from
a single AUTOEXEC file, using the results from the sample
CONFIG.SYS above.
NOTE: These SAMPLES make use of the MCON-SET.EXE program used
for setting DOS environmental variables from MCONFIG.
For information on using this and the MCON-ERR.COM DOS
ERRORLEVEL-setting program, please refer to APPENDIX A.
__ SAMPLE FIRST AUTOEXEC.BAT FILE _____________________________
REM Run the MCON-SET program to set the environment variable
REM "MCONFIG" to the selection made from the menu.
C:\MCONFIG\MCON-SET.EXE
set comspec=c:\command.com
path c:\dos;c:\bat;c:\utils
set prompt=$p$g
C:\MCAFEE\VSHIELD.EXE /CHKHI /CV /LH /M
mode con rate=30 delay=1
if NOT "%MCONFIG%" == "3" goto no_novell
c:\netware\wsgen\ipx
c:\netware\wsgen\route
c:\netware\wsgen\netx
f:
C:\MCAFEE\VSHIELD.EXE /RECONNECT
login mcafee_server_1/John_M
path %path;c:\netware
:no_novell
________________________________________________ END OF FILE __
This example shows how to use the MCONFIG environment
variable to have 3 separate AUTOEXEC files. Depending upon
the selection made from the MCONFIG menu, either AUTO-1.BAT,
AUTO-2.BAT, or AUTO-3.BAT will execute.
__ SAMPLE SECOND AUTOEXEC.BAT FILE ____________________________
REM Call the MCON-SET program to set the environment variable
REM "MCONFIG" to the selection made from the menu. Then call
REM the matching AUTO-n.BAT file.
C:\MCAFEE\VSHIELD.EXE /CHKHI /CV /LH /M
C:\MCONFIG\MCON-SET.EXE
C:\AUTO-%MCONFIG%.BAT
________________________________________________ END OF FILE __
MCONFIG Version 1.00 Page 13
__ SAMPLE AUTO-1.BAT FILE _____________________________________
set comspec=c:\command.com
path c:\dos;c:\bat;c:\utils
set prompt=$p$g
mode con rate=30 delay=1
________________________________________________ END OF FILE __
__ SAMPLE AUTO-2.BAT FILE _____________________________________
set comspec=c:\command.com
path c:\dos;c:\bat;c:\utils
set prompt=$p$g
mode con rate=30 delay=1
________________________________________________ END OF FILE __
__ SAMPLE AUTO-3.BAT FILE _____________________________________
set comspec=c:\command.com
path c:\dos;c:\bat;c:\utils
set prompt=$p$g
mode con rate=30 delay=1
c:\netware\wsgen\ipx
c:\netware\wsgen\route
c:\netware\wsgen\netx
f:
C:\MCAFEE\VSHIELD.EXE /RECONNECT
login mcafee_server_1/John_M
________________________________________________ END OF FILE __
MCONFIG Version 1.00 Page 14
MCONFIG TUTORIAL
The easiest way to get familiarized with MCONFIG is to
create a two-selection CONFIG.SYS file. Option one is your
existing CONFIG.SYS file. Option two will be a minimum
"bare-bones" configuration.
Load the CONFIG.SYS file into your text editor or word
processor and make the following changes to the current
CONFIG.SYS file:
NOTE: When editing the CONFIG.SYS file with a word processor
be sure to save it as an ASCII text file, not a word
processor document.
Add the following two lines to the top of the CONFIG.SYS file
(change the pathname if MCONFIG is located elsewhere):
device=C:\MCONFIG\MCONFIG.SYS CENTER
device=MCONFIG "S\tandard \C\onfiguration" Default Timeout=30
Next, go to the end of the CONFIG.SYS file and add:
device=MCONFIG "M\inimal \C\onfiguration"
files = 20
buffers = 30
device=MCONFIG End
Save the CONFIG.SYS file and re-boot the computer. The MCONFIG
Configuration Selection menu will appear with two configuration
options. Selecting the first option loads the original
CONFIG.SYS. Selecting the second option loads the minimal
configuration.
MCONFIG Version 1.00 Page 15
NOTES ON MCONFIG
USING MCONFIG with DOS 3.30
MCONFIG is designed to work seamlessly with DOS Version
4.00 and above. It can be used with DOS 3.3x with the
following considerations:
- DOS 3.3x does not allow a "REMark" statement in the
CONFIG.SYS file. MCONFIG adds a REM to comment-out
un-needed lines so this will cause a problem with DOS 3.3.
To get around this, MCONFIG precedes unwanted lines
with "BREAK=OFF" statements. This is done automatically
by MCONFIG if run under DOS 3.3x.
- To set BREAK=ON in the CONFIG.SYS, place the "BREAK=ON"
statement after the "DEVICE = MCONFIG End" statement.
- Lines with less than three characters after the equals "="
sign will not be correctly proceeded with a "BREAK=OFF"
statement.
For example, "BUFFERS = 5" is not long enough and
will give an "Invalid Command?" error when executed in
the CONFIG.SYS file. This does not affect the operation
of MCONFIG or the CONFIG.SYS file.
To get around this, add spaces to the right
of short entries. For example, changing "BUFFERS = 5" to
"BUFFERS = 5 *" allows MCONFIG to change the line to
a "BREAK = OFF" statement, removing the "Invalid Command?"
error message from DOS.
USING MCONFIG with DOS 5.00
The only command that can NOT be selectably configured is
the "DOS =" statement. This is because DOS 5.0 checks the
CONFIG.SYS file for "DOS =" entries before executing any device
drivers and uses the last "DOS =" statement found to set itself
up to load high. This means that the following will NOT work:
MCONFIG "L\oad \DOS\ \L\ow"
DOS=LOW
...rest of configuration...
MCONFIG "L\oad \DOS\ \H\igh"
DOS=HIGH,UMB
...rest of configuration...
MCONFIG End
In the above example, the DOS=HIGH,UMB will always be used as
this is the last setting DOS sees. DOS will then load itself
high before MCONFIG is executed.
MCONFIG Version 1.00 Page 16
APPENDIX A: Advanced MCONFIG Features
ENVIRON.SYS DEVICE DRIVER
The ENVIRON.SYS device driver, when used with the SET.SYS
device driver, allows environmental variables to be set from
within the CONFIG.SYS file. Environmental variables set in
this manner are retrieved by the MCON-SET program (normally run
in the AUTOEXEC.BAT file).
The ENVIRON.SYS device driver remains memory resident and
stores up to 128 bytes of environmental variables. The syntax
for ENVIRON is as follows:
DEVICE = ENVIRON.SYS
There are no options. The ENVIRON.SYS device driver uses 280
bytes of RAM.
SET.SYS DEVICE DRIVER
The SET.SYS device driver stores an environmental variable
and value for later retrieval by the MCON-SET program. The
syntax for SET is:
DEVICE = SET.SYS variable = value
where "variable" is the environmental variable to store and
"value" is the value to store with it.
NOTE: ENVIRON.SYS must be loaded before SET.SYS is used.
MCON-SET.EXE PROGRAM
MCON-SET is a program that reads the environmental
variables stored by SET and ENVIRON and places them into DOS
environmental space. There are no options for MCON-SET. It is
usually placed at or near the beginning of the AUTOEXEC.BAT
file.
MCON-ERR.COM PROGRAM
MCON-ERR is a program that sets the DOS ERRORLEVEL to the
same number as the Menu Item selected at boot-up. For example,
the first menu item would set the ERRORLEVEL to 1, the second
to 2, and so forth.
MCONFIG Version 1.00 Page 17
CREM.EXE PROGRAM
CREM (Configuration REMarker) prevents memory managers
such as QEMM-386, 386^MAX, and BlueMAX from optimizing
MCONFIG's Menu Item "Selection Blocks". Memory managers may
not recognize MCONFIG and change its settings so it no longer
runs correctly. CREM modifies the CONFIG.SYS file so that
only one selection block is visible to the optimization
program.
Valid options for CREM are listed below:
CREM block_number REMOVE
Options are:
block_number - REMark out MCONFIG-specific lines and
all selection blocks EXCEPT "block_number"
REMOVE - Restore MCONFIG-specific lines and all
selection blocks
"Block_number" tells CREM to process the CONFIG.SYS file
commenting out all MCONFIG-specific lines and all Menu Item
"selection blocks" EXCEPT the specified "block_number". This
option is not compatible with REMOVE.
REMOVE tells CREM to remove all REMarks from the
CONFIG.SYS file placed there by a previous invocation of CREM
(other comments will remain untouched). This option is not
compatible with "block_number".
MCONFIG Version 1.00 Page 18
An example of a CONFIG.SYS file before processing by
CREM:
__ SAMPLE CONFIG.SYS FILE _____________________________________
DOS = High
device = c:\qemm\qemm386.sys noems
shell = c:\command.com /e:512 /p
device = c:\utils\MCONFIG.SYS Center NumOff
device = MCONFIG SelectionBarBackground=RED
device = MCONFIG "C\onfiguration with cache"
device = c:\mouse\mouse.sys /y /s30
device = c:\cache\cache.sys 4096
device = c:\DOS\ansi.sys
device = c:\DOS\setver.exe
device = MCONFIG "C\onfiguration with \RAM\disk"
device = c:\mouse\mouse.sys /y /s30
device = c:\DOS\ramdrive.sys 4096
device = c:\DOS\ansi.sys
device = c:\DOS\setver.exe
device = MCONFIG "M\inimal configuration"
device = c:\DOS\ansi.sys
device = c:\DOS\setver.exe
device = MCONFIG End
buffers = 5
files = 60
break = on
STACKS = 0,0
lastdrive = E
________________________________________________ END OF FILE __
MCONFIG Version 1.00 Page 19
If CREM was invoked with "CREM 2", the CONFIG.SYS file
would be modified as follows:
__ SAMPLE CONFIG.SYS FILE AFTER CREM 2 PROCESSING _____________
DOS = High
device = c:\qemm\qemm386.sys noems
shell = c:\command.com /e:512 /p
REM {!!}device = c:\utils\MCONFIG.sys Center NumOff
REM {!!}device = MCONFIG SelectionBarBackground=RED
REM {!!}device = MCONFIG "C\onfiguration with cache"
REM {!!} device = d:\mouse\mouse.sys /y /s30
REM {!!} device = c:\cache\cache.sys 4096
REM {!!} device = c:\DOS\ansi.sys
REM {!!} device = c:\DOS\setver.exe
REM {!!}
REM {!!}device = MCONFIG "C\onfiguration with RAMdisk"
device = c:\mouse\mouse.sys /y /s30
device = c:\DOS\ramdrive.sys 4096
device = c:\DOS\ansi.sys
device = c:\DOS\setver.exe
REM {!!}device = MCONFIG "M\inimal configuration"
REM {!!} device = c:\DOS\ansi.sys
REM {!!} device = c:\DOS\setver.exe
REM {!!}
REM {!!}device = MCONFIG End
buffers = 5
files = 60
break = on
STACKS = 0,0
lastdrive = E
________________________________________________ END OF FILE __
Note that the second Menu Item "selection block" is
available to DOS (and the optimization program). Now that
CREM has modified the CONFIG.SYS, the QEMM OPTIMIZE or
386^MAX MAXIMIZE programs can be safely run.
After optimization, execute the following:
CREM REMOVE
to remove the comments placed in the CONFIG.SYS file by CREM.
This restores the MCONFIG Menu Item "selection blocks" (with
an optimized second item).
MCONFIG Version 1.00 Page 20
There is no specific way to process the AUTOEXEC.BAT with
CREM since there are many different ways AUTOEXEC.BAT files can
be processed with MCONFIG. Because of this, the AUTOEXEC.BAT
files will have to be processed manually.
If only one AUTOEXEC.BAT file is used, then processing is
simplified. For example, if the AUTOEXEC.BAT file is as
follows:
__ SAMPLE AUTOEXEC.BAT FILE __________________________________
C:\MCONFIG\MCON_SET
C:\MCAFEE\VSHIELD /CHKHI /CV /LH /M
GOTO CONFIG_%MCONFIG%
:CONFIG_1
(first configuration)
:CONFIG_2
(second configuration)
:CONFIG_3
(third configuration)
________________________________________________ END OF FILE __
Given the previous CONFIG.SYS example run with "CREM 2", edit
the AUTOEXEC.BAT file as follows:
__ SAMPLE AUTOEXEC.BAT FILE AFTER EDITING ___________________
C:\MCONFIG\MCON_SET
SET MCONFIG=2 <--- add this line
GOTO CONFIG_%MCONFIG%
:CONFIG_1
(first configuration)
:CONFIG_2
(second configuration)
:CONFIG_3
(third configuration)
________________________________________________ END OF FILE __
After the optimization program has been run, edit the
AUTOEXEC.BAT to remove the "SET MCONFIG=2" line.
NOTE: CREM will ALWAYS operate on C:\CONFIG.SYS.
MCONFIG Version 1.00 Page 21
Following are the steps necessary to optimize an MCONFIG
configuration with three different Menu Item "selection
blocks" using QEMM's OPTIMIZE in this example:
1. run "CREM 1"
2. Change AUTOEXEC.BAT for first configuration
3. run "OPTIMIZE"
4. run "CREM 2"
5. Change AUTOEXEC.BAT for second configuration
6. run "OPTIMIZE"
7. run "CREM 3"
8. Change AUTOEXEC.BAT for third configuration
9. run "OPTIMIZE"
10. run "CREM remove"